<h1>Listing tasks</h1>

<table border='1'>
  <thead>
    <tr>
      <th>Name</th>
      <th>Phase</th>
      <th>Fornode</th>
      <th>Required for release</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @tasks.each do |task| %>
      <tr>
        <td><%= task.name %></td>
        <td><%= task.phase %></td>
        <td><%= task.phase %></td>
        <td><%= task.requiredForRelease %></td>
        <td><%= link_to 'Show', task %></td>
        <td><%= link_to 'Edit', edit_task_path(task) %></td>
        <td><%= link_to 'Destroy', task, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Task', new_task_path %>
